package org.devops

// 打包
def Build(buildtype, buildShell){
    def builds = ["mvn":"m2", "ant":"ant", "gradle":"gradle", "npm":"nodejs"]

    buildHome = tool builds[buildtype]

    try{
        sh "${buildHome}/bin/${buildtype} ${buildShell}"
    }catch(e){
        println(e)
    }
    
}